package com.atguigu.exception;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * @author 琉
 * @create 2021-09-08 23:29
 */
@ControllerAdvice
public class MyExceptionEasy {

    public String resolve(Exception e, Model model){
        model.addAttribute("atguiguException",e);

        //这里随便返回个啥都能到指定异常位置
        return null;
    }
}
